﻿using JV.Com.Business;
using JV.Com.Internals;
using JV.Com.Model;
using JV.Com.ViewModels.Wrapper;
using Microsoft.Practices.Prism.StoreApps;
using Microsoft.Practices.Prism.StoreApps.Interfaces;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Windows.ApplicationModel;

namespace JV.Com.DesignViewModels
{
    public class MainPageDesignViewModel : PageBaseViewModel
    {
        public MainPageDesignViewModel()
        {
            LoadData();
        }

        public override string PageTitle { get { return "Jeuxvideo.com"; } }

        private void LoadData()
        {
            LastNews = new List<NewsWrapper>();
            //var lastNews = DesignService.GetLastNews();
            //foreach (var news in lastNews)
            //{
            //    LastNews.Add(new LastNewsWrapper(this, news));
            //}
        }

        public List<NewsWrapper> LastNews { get; set; }

    }
}
 